package com.dkd.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 售货机货道对象 tb_channel
 *
 * @author xwq
 * @date 2024-10-27
 */
@ApiModel(description = "售货机货道实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
public class Channel extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键ID", example = "1")
    private Long id;

    /** 货道编号 */
    @ApiModelProperty(value = "货道编号", example = "A01")
    @Excel(name = "货道编号")
    private String channelCode;

    /** 商品Id */
    @ApiModelProperty(value = "商品ID", example = "101")
    @Excel(name = "商品Id")
    private Long skuId;

    /** 售货机Id */
    @ApiModelProperty(value = "售货机ID", example = "1001")
    @Excel(name = "售货机Id")
    private Long vmId;

    /** 售货机软编号 */
    @ApiModelProperty(value = "售货机软编号", example = "VM12345")
    @Excel(name = "售货机软编号")
    private String innerCode;

    /** 货道最大容量 */
    @ApiModelProperty(value = "货道最大容量", example = "50")
    @Excel(name = "货道最大容量")
    private Long maxCapacity;

    /** 货道当前容量 */
    @ApiModelProperty(value = "货道当前容量", example = "25")
    @Excel(name = "货道当前容量")
    private Long currentCapacity;

    /** 上次补货时间 */
    @ApiModelProperty(value = "上次补货时间", example = "2024-10-20", notes = "格式为 yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次补货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastSupplyTime;
}
